#include "PlayerStateBase.h"
#include "AbilitySystemComponent.h"
#include "PawnBase.h"

APlayerStateBase::APlayerStateBase()
{
	NetUpdateFrequency = 100.0f;
	AbilitySystemComponent = CreateDefaultSubobject<UBoukenAbilitySystemComponent>(FName("Ability System Component"));
	AbilitySystemComponent->SetIsReplicated(true);
	AbilitySystemComponent->SetReplicationMode(EGameplayEffectReplicationMode::Mixed);

	Attributes = CreateDefaultSubobject<UBoukenAttributeSet>(TEXT("Health Attributes"));
}

UAbilitySystemComponent* APlayerStateBase::GetAbilitySystemComponent() const
{
	return AbilitySystemComponent;
}